package com.hjb.service.mapper;

import com.hjb.service.domain.siteuser.SiteUserCurrent;
import com.hjb.service.domain.siteuser.SiteUserCurrentExample;
import com.hjb.service.mybatis.BaseMapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SiteUserCurrentMapper extends BaseMapper<SiteUserCurrent> {
    int countByExample(SiteUserCurrentExample example);

    int deleteByExample(SiteUserCurrentExample example);

    List<SiteUserCurrent> selectByExample(SiteUserCurrentExample example);

    int updateByExampleSelective(@Param("record") SiteUserCurrent record, @Param("example") SiteUserCurrentExample example);

    int updateByExample(@Param("record") SiteUserCurrent record, @Param("example") SiteUserCurrentExample example);
    
    /**
     * 查询用户活期购买待转持有金额
     * @param userId
     * @return
     */
    BigDecimal queryTotalCurrentByUserId(String userId);
}